import QtQuick 1.1
import com.nokia.meego 1.0

PageStackWindow {
    id: appWindow

//    initialPage: "qrc:/MainPage.qml"

    MainPage {
        id: mainPage
    }

    initialPage: mainPage


    QueryDialog {
        id: aboutDialog
        titleText: "QInfoTrafic"
        message: "Yavuz EKMEN\nVersion: 0.2.1 \nMail: y.ekmen@ovi.com\n"
    }

    Menu {
        id: myMenu
        visualParent: pageStack
        MenuLayout {
            MenuItem {
                text: qsTr("About")
                onClicked: {
                    aboutDialog.open();
                }
            }
        }
        onStatusChanged: {
            if (status === DialogStatus.Closed) {
                appWindow.showToolBar = true;
            }
        }
    }
}
